﻿using ZilLion.Service.Core.MongoDbManager.GridFs;
using ZilLion.Service.ObjectStorage.Domain.Reponsitorys.Interfaces;

namespace ZilLion.Service.ObjectStorage.Domain.Reponsitorys
{
    public class ObjectStorageRespository : GridFsRepository, IObjectStorageRespository
    {
        public byte[] GetFileBytes(string fileName)
        {
            return GetFileAsBytesByFileName(fileName);
        }

        public string UploadFileToGridFs(string filename)
        {
            return UploadFile(filename);
        }

        public string UploadFileToGridFs(byte[] fileStream, string filename)
        {
            return UploadFile(fileStream, filename);
        }
    }
}